package Factory_Pattern;

public class Main {
	public static void main(String[] args) {
		Product product;
		
		Creator creator1 = new ConcreteCreatorBlue();
		product = creator1.getProduct();
		product.writeWord();
		
		Creator creator2 = new ConcreteCreatorRed();
		product = creator2.getProduct();
		product.writeWord();
	}
}
